package indiwood.model.service;

import indiwood.model.AdminVO;
import indiwood.model.MemberVO;
import indiwood.model.dao.MemberDAO;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

@Service
public class MemberServiceImpl implements MemberService {
	@Resource(name = "memberDAOImpl")
	private MemberDAO memberDAO;
	@Override
	public MemberVO login(MemberVO mvo) {
		return memberDAO.login(mvo);
	}
	@Override
	public int register(MemberVO mvo) {
		return memberDAO.register(mvo);		
	}
	@Override
	public int checkEmail(String email) {		
		return memberDAO.checkEmail(email);
	}
	@Override
	public MemberVO findMemberByEmail(String email) {
		return memberDAO.findMemberByEmail(email);
	}
	@Override
	public AdminVO loginAdmin(AdminVO avo) {
		return memberDAO.loginAdmin(avo);
	}
	@Override
	public void outMember(MemberVO mvo) {
		memberDAO.outMember(mvo);
	}
	@Override
	public void updateMember(MemberVO mvo) {
		memberDAO.updateMember(mvo);
	}
}
